import Vue from "vue";
import VueRouter, { RouteConfig } from "vue-router";
import asyncRouter from "./asyncRouter"
Vue.use(VueRouter)

const getRole = () =>{
    const routes: Array<RouteConfig> = [
        {
          path: "/",
          component: () =>
            import(/* webpackChunkName: "login" */ "@/views/login/login.vue")
        },
      ];
    
    const router = new VueRouter({
        routes
    });
    router.addRoutes(asyncRouter)
}

export default getRole